home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / elm.faq < prev    next >
Encoding:
Internet Message Format  |  1994-05-18  |  72.8 KB

  1. Subject: Elm Mail User Agent FAQ - Frequently Asked Questions
  2. Newsgroups: comp.mail.elm,comp.answers,news.answers
  3. From: serini@ghost.dsi.unimi.it (Piero Serini)
  4. Date: 17 May 1994 15:07:28 +0200
  5.  
  6. Archive-name: elm/FAQ
  7. Last-modified: 1994/05/17
  8. Version: $Id: Elm-FAQ.post,v 4.2 1994/05/17 01:10:19 piero Exp $
  9.  
  10.  
  11.                         Frequently Asked Questions
  12.                                Elm 2.4 [23]
  13.  
  14.  
  15.                                Piero Serini
  16.                       piero@strider.st.dsi.unimi.it
  17.                         serini@ghost.dsi.unimi.it
  18.  
  19.          $Id: Elm-FAQ.post,v 4.2 1994/05/17 01:10:19 piero Exp $
  20.              (C) Piero Serini 1993, 1994 - All Rights Reserved
  21.  
  22. This is an unofficial  Frequently  Asked  Questions (with answers) list
  23. about Elm. Syd Weinstein kindly checked this, but he is not responsible
  24. for the errors  in the answers,  which are my fault,  unless  otherwise
  25. specified.  I do NOT claim to be a member of the Elm Development Group.
  26.  
  27. WARNING: delete arepdaem and autoreply from your systems NOW !
  28.  
  29.  
  30. 0.0     Organization and availability
  31.  
  32.     This FAQ is posted monthly, the 15th, on news.answers,
  33.     comp.answers and comp.mail.elm.
  34.  
  35.     It is available:
  36.     - from the above USENET groups
  37.     - from all the USENET archives
  38.     - ftp//ghost.dsi.unimi.it[149.132.2.1]:~ftp/pub/Elm/
  39.     - ftp//cs.ruu.nl/pub/NEWS.ANSWERS/elm/FAQ
  40.     - mail request from cs.ruu.nl: send mail to mail-server@cs.ruu.nl
  41.       with the following commands in the message body:
  42.         send NEWS.ANSWERS/elm/FAQ
  43.         end
  44.  
  45.     A file containing instructions on how to buid and install
  46.     Elm under Next is on ghost in ~ftp/pub/Elm/Next.Z.
  47.  
  48.     A context diff file containing the differences between this
  49.     FAQ and the previous release is posted on comp.mail.elm and
  50.     is available from the same sites in the file .../Elm/diffs.Z.
  51.  
  52.     This FAQ is NOT reposted if modified, until the next issue
  53.     date. I will modify the ftp file only.  I suggest using ftp
  54.     to get the latest version of this document.
  55.  
  56.     This FAQ refers to latest patchlevel I put my hands on.
  57.     Questions about a specific patchlevel are kept if of common
  58.     interest. Actually, all relevant questions concerning PL 21
  59.     are kept int this file, as many users still run PL 21.
  60.     
  61.         This FAQ consists of six parts:
  62.         0.*     Organization.
  63.         (0.1    Copyright)
  64.         1.*     Operational Questions (and answers).
  65.         2.*     Installation Questions (and answers).
  66.     3.*    Filter Questions (and answers).
  67.         This part is maintained by Jan Djarv (Jan.Djarv@sa.erisoft.se)
  68.     4.*    Bugs list.
  69.         5.*     Archivers, what they archive, how to download.
  70.  
  71.     At the end of this file you can also find:
  72.     - Copyright Notice
  73.     - Warranty Disclaimer
  74.     - Publishing Notes
  75.  
  76. 0.1    Copyright
  77.  
  78.     This FAQ is Copyright (C) 1993, 1994 by Piero Serini.
  79.     All Rights are reserved.
  80.     Please check the full Copyright notice, Warranty disclaimer and
  81.     Publishing notes at the end of this document.
  82.  
  83. 1.a    Questions
  84.  
  85.     Here is an (incomplete) questions list, followed by an (incomplete)
  86.     answers part. This list (and answers) are now divided into three
  87.     major groups:
  88.     - The "Operational" group is dedicated to those having any problem
  89.       running Elm.  This part also contains a few general questions,
  90.       like "What is Elm?"
  91.     - The "Installation" group is dedicated to those who want to install
  92.       Elm and don't succeed in.
  93.     - The "Filter" group is dedicated to filter, a great utility 
  94.       which appears in the 70% of the users' questions.
  95.  
  96.     Please, mail me any comment, suggestion, correction
  97.     to any of the addresses above, with Subject: Elm-FAQ
  98.     Answers are from the "Elm montly posting" or from comp.mail.elm
  99.     and proper credit is given before each answer.
  100.  
  101. 1.0     Operational Questions
  102.  
  103. 1.01    What is Elm?
  104. 1.02    Which is Elm current version?
  105. 1.03    Where can I find the distribution?
  106. 1.04    Where do I get the "Elm Reference Guide" and the other docs ?
  107. 1.05    How to get frm(1L) to only show new mail?
  108. 1.06    How do I get ELM to read a mailbox other than /usr/mail/<me> ?
  109. 1.07    How do I save a message without deleting it?
  110. 1.08    How do I attach a `signature' to the bottom of outgoing messages?
  111. 1.09    Why do I get the remote signature on replies to local mail?
  112. 1.10    How can I get elm to NOT expand the alias list on outgoing msgs?
  113. 1.11    How does one mark a message as urgent?
  114. 1.12    How can I get a line like "Quoting foo:" before a replied-to mail?
  115. 1.13    How do i customize the ">" sign ??
  116. 1.14    Can I tag uuecoded files in the order I want and then uudecode them?
  117. 1.15    Is there any way to bounce all the tagged messages with ONE command ? 
  118. 1.16    Does ELM have MIME (metamail) support?
  119. 1.17    How not to include headers in outward bound mail?
  120. 1.18    Is it possible to save mail messages without the headers?
  121. 1.19    How do I upgrade my ELM aliases from 2.3 to 2.4PL23 ?
  122. 1.20    Elm seems to ignore HOME environment variable. Why?
  123. 1.21    Sometimes Elm (PL < 21) seems to join two messages in one. Why?
  124. 1.22    How can ELM be used for an automatic reply?
  125. 1.23    How to list your mail from the oldest to the newest?
  126. 1.24    How to use elmheaders file?
  127. 1.25    How to change the fullname in sent mail ?
  128. 1.26    "Alias too long" or string too long errors.
  129. 1.27    How to crypt mail in elm ?
  130. 1.28    8 bit characters configuration?
  131. 1.29    Sun mailtool attachments and elm?
  132. 1.30    How can I save outgoing mail ?
  133. 1.31    Can I get an automatic receipt when my message is actually read?
  134. 1.32    Get a copy of message(s) into the edit buffer when composing a reply?
  135. 1.33    How can I print in Elm ?
  136. 1.34    How can I get a complete elmrc file ?
  137. 1.35    How can I change a configuration setting for all of my users?
  138. 1.36    What do `Priority, Expires and Action' headers mean?
  139. 1.37    What does the `Precedence' header mean?
  140. 1.38    How can I get a `Reply-To' header in all of my messages?
  141. 1.39    ti/te strings for the xterm in termcap are wrong.
  142. 1.40    Can I edit and forward without having the prefix (>) added
  143. 1.41    Can I take an addres from a message and put it in the aliases list?
  144. 1.42    sendmail 565c+IDA + Elm = SEGV. Why ?
  145. 1.43    Can ELM use MH-style inboxes?
  146. 1.44    How can I enter a message that is in a folder into a message ?
  147. 1.45    I get my NIS/YP domainname appended to local mails. Why?
  148. 1.46    How can I include a file in a header ? And a quote ?
  149. 1.47    How can I build an alias containig "=" ?
  150. 1.48    What's aliases limit ? # of aliases ? total lenght ?
  151. 1.49    How can I change the editor ?
  152. 1.50    How do I include a file in a mail message ?
  153. 1.51    Which are the (s)ave abbreviations ?
  154. 1.52    Why do I get "folder corrupt" messages ?
  155. 1.53    How to know how may news messages arrived, without entering Elm ?
  156. 1.54    How not to display header when reading mail ?
  157. 1.55    Does Elm support headers within message body ?
  158. 1.56    How can I do <.....> with vi / my editor under Elm ?
  159. 1.57    How can I scroll backwards w/ builtin editor ?
  160. 1.58    How can I send the same message to a list of people ?
  161. 1.59    How can I resynchronize folder (deleting, etc) w/out exiting Elm ?
  162.  
  163. 2.0    Installation Questions
  164.  
  165. 2.01    On SCO Xenix, all mail is from user anonymous. Why?
  166. 2.02    Elm doesn't work on Next. Why?
  167. 2.03    Compiling with Microsoft UNIX C Compilers won't work. Why?
  168. 2.04    Various problems on Unix 286.
  169. 2.05    Configure won't run on HP-UX. Why?
  170. 2.06    Configure won't run on SCO XENIX 2.2.1. Why?
  171. 2.07    Will Elm work on SGI Indigo?
  172. 2.08    I have problems compiling elm2.4 on HP/Apollo
  173. 2.09    I have problems compiling elm2.4 on IBM AIX
  174. 2.10    Compiling elm 2.4 under NS 3.0
  175. 2.11    Elm sends 'empty mail' on 386BSD: why?
  176. 2.12    Why can't I get SGI to work for non ROOT?
  177. 2.13    I have problems p)rinting messages in 2.4PL20
  178. 2.14    Elm2.4 PL20 - 'x' key causes segmentation violation
  179. 2.15    readmsg:illegal option -- I. Why?
  180. 2.16    Forms don't work. Why?
  181. 2.17    ELM does not recognize VMS mail. Why?
  182. 2.18    Huge headers cause Memory Fault. Why?
  183. 2.19    Can I use elm for posting and replying to news?
  184. 2.20    Compile fails on lib/strftime.c [PL23].
  185. 2.21    Compile error on SGI Crimson.
  186. 2.22    Problem compiling elm on DEC Alpha, OSF/1 v.1.2
  187. 2.23    I can't build Elm 2.4PL23 on Sun 386i SunOS 4.0.2
  188. 2.24    How can I override a Configure's setup ?
  189. 2.25    How to solve hdrs/mcprt.h problems with Sequent/PTX 2 ?
  190.  
  191. 3.0    Filter Questions
  192.     This part is maintained by Jan Djarv <Jan.Djarv@sa.erisoft.se>
  193.  
  194. 3.01    What documentation exists for filter?
  195. 3.02    What do I need to get filter working?
  196. 3.03    How can I tell if my system understands .forward files?
  197. 3.04    What do I put in my .forward file?
  198. 3.05    What is the simples filter-rules file I can write to test filter?
  199. 3.06    How do I check my filter-rules for typos and other errors?
  200. 3.07    Why doesn't the output from filter -r match my filter-rules file?
  201. 3.08    Can I have 'or' in my filter-rules?
  202. 3.09    Can I make filter execute more than one rule for a message?
  203. 3.10    How do I do multiple actions for one rule?
  204. 3.11    What headers are available in the filter-rules?
  205. 3.12    How do I forward mail to an elm alias from filter?
  206. 3.13    Filter executes my script but the script doesn't work.
  207. 3.14    How do I capture the message fed to a script by execute/executec
  208. 3.15    Both execute and executec feeds the message as standard input to
  209. 3.16    What if I what to do something based on the contents of a message
  210. 3.17    How can I make filter operate on all messages in a folder?
  211. 3.18    Can I use filter to automatically answer my mail (like vacation)?
  212. 3.19    My filter doesn't recognize executec/matches.
  213. 3.20    Filter sometimes munges up my folders, or looses messages. Why?
  214. 3.21    Why doesn't elm mark mail I saved in a folder with filter as new (N)?
  215. 3.22    Why does filter join adjacent messages together?
  216. 3.23    What other mail filter programs exists?
  217. 3.24    554 "|/usr/local/bin/filter"... unknown mailer error
  218. 3.25    My filter doesn't work. I set it up correctly, but nothing happens.
  219. 3.26    How to (b)ounce from filter, instead of (f)orwarding ?
  220. 3.27    If I use filter, all incoming mail disappears. Why ?
  221.  
  222.  
  223. 1.0    Operational Answers
  224. ---------------------------
  225.  
  226. 1.01    What is Elm?
  227.  
  228.     From Elm documentation:
  229.         Currently on Unix, there seems to be a preponderence
  230.     of line-oriented software.  This is most unfortunate as most
  231.     of the software on Unix tends to be pretty darn hard to use!
  232.     I believe that there is more than a slight correlation between
  233.     the two, and, since I was myself having problems using
  234.     "mailx" with high-volume mail, I created a new mail system.
  235.  
  236.         In the lingo of the mail guru, Elm is a "User Agent" system,
  237.         it's designed to run with "sendmail" or "/bin/rmail" or any
  238.     other UNIX Mail Transport Agent (according to what's on your
  239.     system) and is a full replacement of programs like "/bin/mail"
  240.     and "mailx".  The system is more than just a single program,
  241.     however, and includes programs like "frm" to list a 'table
  242.     of contents' of your mail and "printmail" to quickly paginate mail
  243.     files (to allow 'clean' printouts).
  244.  
  245. 1.02    Which is Elm current version?
  246.  
  247.     Elm current version is 2.4 PatchLevel (PL) 23.
  248.     New release should be 3.0, scheduled some time in 1994.
  249.  
  250.     If you are on an HP machine, you can find strange (high)
  251.     version numbers, like 60.25 or 70.85. These are HP versions,
  252.     derived from Elm, maintained by HP who added some feature.
  253.     If the version number is < 70 you can consider upgrading to
  254.     2.4.23, otherwise it's a matter of choice.
  255.  
  256. 1.03    Where can I find the distribution?
  257.  
  258.     There's a list of sites distributing Elm at the bottom of this
  259.         file (4.*     Archivers, what they archive, how to download.).
  260.     In addition, new releases will be posted to comp.sources.unix,
  261.     patches will be posted to comp.sources.bugs.
  262.     After patches have been proven and out for a while, they will
  263.     be posted to comp.sources.unix.
  264.  
  265.     Elm portings or clones for DOS, Windows and OS/2 are available as
  266.     listed below:
  267.  
  268.     DOS/WINDOWS:
  269.     * Peter Churchyard (pjc@cc.ic.ac.uk):
  270.     Elm-PC, a version I ported, is available by anon ftp from
  271.     lister.cc.ic.ac.uk:/pub/elm-pc.
  272.     A Windows version is available, too, in: /pub/winelm.
  273.  
  274.         * Mike O'Connor (mjo@msen.com):
  275.         There is a package called PC-Elm that's an imitation of Elm (i.e. it
  276.         didn't come from Elm's source tree). It's available for anonymous FTP
  277.         from oak.oakland.edu:/pub/msdos/ka9q-tcpip/, but it's supposed to
  278.         interoperate with UUPC and possibly other common PC UUCP mailers.
  279.  
  280.         * Russell Schulz (russell@alpha3.ersys.edmonton.ab.ca):
  281.     Simtel has it available in the ka9q-tcpip directory as pcelm31.zip
  282.     oak.oakland.edu:/pub/msdos/ka9q-tcpip/pcelm31.zip
  283.     wuarchive.wustl.edu:/mirrors/msdos/ka9q-tcpip/pcelm31.zip
  284.     ftp.uu.net:/systems/ibmpc/msdos/simtel20/ka9q-tcpip/pcelm31.zip
  285.  
  286.     OS/2:
  287.     * Richard j. Wyble (rjw@rjwhome.dmc.com):
  288.     Elm version 3.11 for OS/2 is available by anon ftp from
  289.     ftp-os2.nmsu.edu:/pub/os2/2.x/network. The two files are
  290.     elm23exe.zip and elm23src.zip.
  291.  
  292. 1.04    Where do I get the "Elm Reference Guide" and the other docs ?
  293.  
  294.     * From the monthly posting:
  295.     Elm has several documents (over 100 pages worth of doc)
  296.     that were written to help users install, support and use Elm.
  297.     These are in the doc directory of the source distribution.
  298.     Contact your systems administrator for a copy of the documents.
  299.     For those sites that do not have troff (either di-troff or
  300.     o-troff) and do have postscript printers, dsinc (dsinc.Myxa.com)
  301.     has a copy of the docs already in postscript format available
  302.     for anonymous uucp or ftp.
  303.  
  304.     * David W. Tamkin (dattier@Mcs.Com):
  305.     Plain text copies are available for FTP on ftp.mcs.com in subdi-
  306.     rectories of ~ftp/mcsnet.users/dattier/elmguides.
  307.  
  308.     * Paul Kramer (pkramer@unlinfo2.unl.edu):
  309.     At UNL, I have put together documentation on 'elm'.  You will find
  310.     it in two different servers: gopher and ftp.  In both places, you
  311.     should find MSWord, postscript, ASCII, and rich-text-format versions
  312.     of the local documentation.  Plus there are 1 page helpsheets in
  313.     Aldus Pagemaker, postscript, and ASCII versions.
  314.  
  315. 1.05    How to get frm(1L) to only show new mail?
  316.  
  317.     * Alan Thew (alan.thew@liverpool.ac.uk):
  318.     Try the fromwho program which IMHO is better tham frm and
  319.     allows you to type  "fromwho -n"  to show who has sent you
  320.     new mail amd what the subject line is.
  321.     Availabe from comp.sources.unix archives and needs an ANSI C compiler
  322.     (but will build on Suns with "unproto" software).
  323.  
  324.     * Syd Weinstein (syd@Myxa.com):
  325.     Better answer:
  326.         use nfrm, it will only show new mail.  nfrm is a link to frm.
  327.         There are other command line options to show various restrictions
  328.         see the frm(1) manual page.
  329.         possible status limitations are new, unread and old or any combination
  330.         of these.  typing frm -h yields:
  331.  
  332.     frm -- list from and subject lines of messages in mailbox or folder
  333.     Usage: frm [-n] [-v] [-s {new|old|read}] [filename | username] ...
  334.  
  335.     option summary:
  336.     -h      print this help message.
  337.     -n      display the message number of each message printed.
  338.     -Q      very quiet -- no output is produced.  This option allows shell
  339.         scripts to check frm's return status without having output.
  340.     -q      quiet -- only print summaries for each mailbox or folder.
  341.     -S      summarize the number of messages in each mailbox or folder.
  342.     -s    status only select messages with the specified status.
  343.         'status' is one of "new", "old", "unread" (same as "old"),
  344.         or "read".  The first letter need only be specified.
  345.     -v      print a verbose header.
  346.  
  347. 1.06    How do I get ELM to read a mailbox other than /usr/mail/<me> ?
  348.  
  349.     Elm uses the MAIL environment variable to read the correct
  350.     mailbox.
  351.  
  352. 1.07    How do I save a message without deleting it?
  353.  
  354.     C)opy it instead of s)aving.
  355.  
  356. 1.08    How do I attach a `signature' to the bottom of outgoing messages?
  357.  
  358.     1) look for "localsignature" and "remotesignature" in your elmrc
  359.        file ( ~/.elm/elmrc ); if they're present, uncomment them and
  360.        be sure they look like:
  361.         localsignature = ~/.signature
  362.         remotesignature = ~/.signature
  363.     2) if they're not present, add them;
  364.     3) be sure there's also "sigdashes = ON";
  365.     4) Create the corresponding file(s) in your home directory, with your
  366.        signature.
  367.  
  368.     You can have 2 different signatures for local and remote messages:
  369.     in this case you need to change one og the names in elmrc (like
  370.     localsignature = ~/.signature.loc , for example).
  371.  
  372.     Please note that .signature files should contain useful information
  373.     and not exceed 4 lines in lenght.
  374.  
  375. 1.09    Why do I get the remote signature on replies to local mail?
  376.  
  377.         From the monthly posting:
  378.         In Elm 2.4, any address with an ! or @ in it is considered
  379.         remote, without those characters, its local.
  380.         Any reply is qualified to prevent alias expansion.  If you had
  381.         an alias in your private Elm aliases that matched the name of a
  382.         user on your system, but that alias did not point to that user,
  383.         there would be no way to reply to the message.  It would end up
  384.         going to the alias name, not the user that mailed you.  To
  385.         prevent this, Elm fully qualifies (adds the site name) to a
  386.         reply address.  This makes the simplistic signature detector
  387.         think that the message is 'remote'. This is not slated to
  388.         change until 3.0.
  389.  
  390. 1.10    How can I get elm to NOT expand the alias list on outgoing msgs?
  391.  
  392.         From the monthly posting:
  393.     Problem is if a list has, say, 100 names in it then sending to
  394.     the list expands every single one of the 100 names. I would like
  395.     the message to have the "To" line = the name of the list itself
  396.     and have the actual recipients' names not appear.
  397.         You can't and don't want to. (and yet you can also) An alias is
  398.         a mechanism of making Elm address a message to multiple
  399.         people.  However, when the message gets to its destination, Elm
  400.         also has to allow that person do a group reply.  If the message
  401.         only has your local private elm alias in it, the group reply
  402.         will try and go to that alias name.  Unfortunately, that name
  403.         is meaningless to that other person (its private to both Elm
  404.         and you).
  405.  
  406.         There are two solutions:
  407.  
  408.         The preferred if replies are desired:
  409.                 Have your mail administrator create a file include
  410.                 alias for you in your MTA (sendmail, et al).. This is
  411.                 usually of the type
  412.  
  413.         alias   :include:/some/path/to/a/file
  414.  
  415.         where the file would be in a place you control and you have write
  416.     access to the file.  Then you can add/drop members of the list, and
  417.         the mail just goes to the alias, and, someone sending to
  418.         alias@your.system will be able to send to all members. (group
  419.         reply works correctly)
  420.  
  421.         The less preferred method: (no group reply is possible)
  422.                 Send the message to yourself, with a bcc to the Elm
  423.                 alias.
  424.         Of course, the Bcc: won't be expanded by the MTA internal to
  425.         the message, so it won't appear in the message.
  426.  
  427. 1.11    How does one mark a message as urgent?
  428.  
  429.     * David W. Tamkin (dattier@Mcs.Com):
  430.     Having an Action: header sets the recipient's A flag (if the recipient
  431.     uses Elm); in 2.3 have a Priority: header set the U flag no matter what
  432.     it said (even "Priority: none" or "junk" or "low").  In 2.4 there are
  433.     certain precoded Priority: values that do not turn on the U flag
  434.     ["normal" and "non-urgent"], but anything else will.
  435.  
  436.     * Jan Djarv <Jan.Djarv@sa.erisoft.se>:
  437.     Normal or non-urgent (case independent) does not turn on the U flag.
  438.     Also 'Importance: 2' turns on the U flag (exactly 2).
  439.     I dont know if this is an old artifact. I have never seen any
  440.     Importance header.
  441.  
  442. 1.12    How can I get a line like "Quoting foo:" before a replied-to mail?
  443.  
  444.     * Joshua A. Laff (laff@cs.uiuc.edu):
  445.     from $HOME/.elm/elmrc:
  446.     # attribution string for replies ('%s' is the author of original
  447.     # message)
  448.     attribution = In our previous episode, %s said:
  449.  
  450.     * (me) :
  451.     I also wrote a little patch,  since it seemed everyone was looking
  452.     for something like "In the mail about ... on ... you ... said ..."
  453.     It was posted on comp.mail.elm, sent to Syd@Myxa.COM, and is kept
  454.     on //ghost.dsi.unimi.it[149.132.2.1]/pub/FAQs/Elm/attrib.patch.
  455.  
  456. 1.13    How do i customize the ">" sign ??
  457.  
  458.     Sven Guckes (guckes@math.fu-berlin.de):
  459.     You can edit the "quote prefix" by editing the "elmrc"
  460.     ($HOME/.elm/elmrc). Just change the value of the variable "prefix".
  461.  
  462.     # prefix sequence for indenting included message text
  463.     prefix = >_
  464.  
  465.     Note:  The '_' stands for a <space>.
  466.  
  467. 1.14    Can I tag uuecoded files in the order I want and then uudecode them?
  468.  
  469.     * Alan Edmonds (alan@ernest.itg.ti.com):
  470.     I save all of the items into a single folder,
  471.     order not important (yet).  Bring up elm on the single folder.
  472.     Go to the options screen and select "Sort by Subject."  Go back
  473.     to the main screen.  All of the items are (usually) in the
  474.     proper order.  I can then tag related messages and save them
  475.     (in order) to another folder.  I then run
  476.     'uucat new_folder | uudecode' to decode the pieces.  Works great.
  477.     I can go back to the original folder if something gets messed up.
  478.     I don't have to trim the headers out of each part (uucat does this),
  479.     and elm figures out the order for me.
  480.     (Ask Alan Edmonds for uucat source.)
  481.  
  482.     * Steve Faiwiszewski (stevef@bony1.bony.com):
  483.     UUdecode expects to decode a single uuencoded file. It
  484.     knows nothing about multiple parts, and certainly has no knowledge
  485.     of the correct sequencing.
  486.     Here's what I do:  Typically, I receive a multipart uuencoded file
  487.     with the subject line of each msg containing the part number, so I can
  488.     get the parts ordered properly by telling Elm to sort by Msg
  489.     Subject.  I then save all the parts to a folder, and run it through
  490.     this program I found a long time ago, called unpack (source follows).
  491.     The neat thing about this program, is that you can append many
  492.     uuencoded files to the same folder, and unpack will do the right
  493.     thing - as long as all the parts are ordered correctly, and the
  494.     "begin" line of each part 1 contains a unique file name.
  495.     Invoke it like this: "unpack < foldername"
  496.     I guess tagging and piping should work with it too.
  497.     (Ask Steve Faiwiszewski for unpack source.)
  498.  
  499. 1.15    Is there any way to bounce all the tagged messages with ONE command ? 
  500.  
  501.     Chip Rosenthal (chip@chinacat.unicom.com):
  502.     Save the following to a script in your personal bin directory,
  503.     say `bounce':
  504.  
  505.         : use /bin/sh
  506.         : ${ELMSTATE?} ${1?}
  507.         sed -n -e 's/^S//p' $ELMSTATE | while read mssgno ; do
  508.                 echo "Bouncing message $mssgno to $@ . . ."
  509.                 readmsg -a $mssgno | rmail $@
  510.         done
  511.  
  512.     When you run:  !bounce addr ...
  513.     then all of the tagged messages will be bounced to the indicated
  514.     address(es). If no messages are tagged, then the currently selected
  515.     message will be bounced.
  516.  
  517. 1.16    Does ELM have MIME (metamail) support?
  518.  
  519.     MIME allows for sending and receiving of messages compliant
  520.     to the Multipurpose Internet Mail Extension (RFC 1341).
  521.     MIME provides a way to attach binary, graphic, audio,
  522.     video, postscript and other files. It doesn't necessarily
  523.     need graphics capabilities on your display, but its useful.
  524.  
  525.     If you have installed Nathaniel Borenstein's metamail package for
  526.     displaying MIME messages, Elm can make use of it.  If you didn't
  527.     have metamail installed you might want to obtain a copy of it.
  528.     The most recent version is on thumper.bellcore.com [128.96.41.1]:
  529.     /pub/nsb/mm2.6.tar.Z .
  530.  
  531.     Compiling of Elm even with MIME support enabled would not
  532.     depend on the metamail package. But you would not be able to
  533.     use nearly all of the MIME features as long as you don't have
  534.     metamail installed. Metamail with its companion programs
  535.     (mmencode) must be installed somewhere in the search path,
  536.     usually /usr/local/bin.
  537.  
  538. 1.17    How not to include headers in outward bound mail?
  539.  
  540.     Problem:
  541.     all outward bound mail still includes the following lines,
  542.     even if I have the "noheader = ON" line in my .elmrc:
  543.  
  544.     X-Mailer: ELM [version 2.4 PL21]
  545.     MIME-Version: 1.0
  546.     Content-Type: text/plain; charset=US-ASCII
  547.     Content-Transfer-Encoding: 7bit
  548.     Content-Length: 67
  549.  
  550.     Syd Weinstein (syd@Myxa.com):
  551.     "noheader = ON" means when the message is copied into the buffer
  552.     for a reply or forward.
  553.     The "X-Mailer:" header is controlled at Configure time.  There
  554.     is a compile time option to produce or not produce it.
  555.     The three "Content-*" headers are always going to be produced by 2.4.
  556.  
  557. 1.18    Is it possible to save mail messages without the headers?
  558.  
  559.     * Chip Rosenthal (chip@chinacat.unicom.com):
  560.     Use: !readmsg -n >filename
  561.     If you want to save a few keystrokes, you can encapsulate this
  562.     in a shell script to go in your personal bin directory.
  563.  
  564.     * Syd Weinstein (syd@Myxa.com):
  565.     Note that some of the newer features of readmsg are only
  566.     available in later 2.4 releases
  567.  
  568. 1.19    How do I upgrade my ELM aliases from 2.3 to 2.4PL23 ?
  569.  
  570.         Syd Weinstein (syd@Myxa.com):
  571.     All I did, was make sure 2.4 as installed, and then had each
  572.     user run newalias and I ran newalias -g.  The aliases.text
  573.     file is upwards compatible.  The old newalias converted
  574.     aliases.text to aliases.data and aliases.hash the 2.4 newalias
  575.     converts aliases.text to aliases, aliases.dir and aliases.pag.
  576.     If you don't have those three new files, you didn't install
  577.     2.4 correctly and are still running 2.3's newalias.
  578.  
  579. 1.20    Elm seems to ignore HOME environment variable. Why?
  580.  
  581.         Syd Weinstein (syd@Myxa.com):
  582.     This is a feature.  Elm ignores $HOME, so that when su'd you read
  583.     the right mail file.  Its a choice of one or the other and we chose
  584.     to allow su over $HOME.
  585.  
  586. 1.21    Sometimes Elm (PL < 21) seems to join two messages in one. Why?
  587.  
  588.         Syd Weinstein (syd@Myxa.com):
  589.     Early versions of Elm 2.4 had a problem with messages with bad content
  590.     length headers. I'd update to a more recent version when 21 comes out
  591.     in a bit.
  592.  
  593.     Compiler's Note: now PL 23 is out. I chose to report this Question
  594.     as it is so a strange behaviour (mail still reads the mailbox
  595.     correctly) a person can get mad about it :)
  596.  
  597. 1.22    How can ELM be used for an automatic reply?
  598.  
  599.     It cannot. Autoreply is no longer supprorted and MUST be removed
  600.     from you system. You can try and use filter, but it's better
  601.     looking for some other utility.
  602.  
  603. 1.23    How to list your mail from the oldest to the newest?
  604.  
  605.     Arnaud Girsch (Arnaud.Girsch@INSA-Lyon.FR):
  606.     You can change the sortby= in your .elm/elmrc file, or change in menu
  607.     (O)ption, and then (S)orting criteria .... It allows you to choose
  608.     lots of different order .. and  you can choose whatever you want
  609.  
  610. 1.24    How to use elmheaders file?
  611.  
  612.     * Arnaud Girsch (Arnaud.Girsch@INSA-Lyon.FR):
  613.     You only have to create a file named elmheaders, a text file 
  614.     where you put all the lines you want to be seen in the header !
  615.     If you redefine an existing header, it'll take it's place.
  616.     Example: if you want to redefine your Reply-To: header,
  617.     just create the file with the first line:
  618.         Reply-To: myaddress@node.domain.country
  619.  
  620.     *
  621.     Please also note that elmheaders file is NOT processed. It's
  622.     appended as it is, with the exception of quoted shell escapes.
  623.     Hence, a Bcc: will not work, but a Return-Reply-To will, as
  624.     the latter is processed by the *receiving* MTA.
  625.  
  626. 1.25    How to change the fullname in sent mail ?
  627.  
  628.     1) use the "fullname" option;
  629.     2) set the NAME environment variable.
  630.  
  631.     2) is useful if you want to change your name for a mail
  632.     only, without editing your elmrc file.
  633.  
  634.     Note that you might not be able to change fulname at all.
  635.     If your Elm is configured with DONT_ADD_FROM enabled
  636.     (run `elm -v' to see if it is), then Elm is *not* adding the
  637.     From: line.  The low-level mail transport is.
  638.     If this is the case (and it commonly is) you'll have to ask your
  639.     local administrator how to do it.  (If you have a `chfn' command
  640.     that might do it.)
  641.  
  642. 1.26    "Alias too long" or string too long errors.
  643.  
  644.     Errors are to be expected when trying to expand very long
  645.     aliases, mailing lists, and so on. This error is due
  646.     to the fixed lenght strings in Elm 2.xx, and will not
  647.     be fixed until 3.xx is released.
  648.  
  649. 1.27    How to crypt mail in elm ?
  650.  
  651.     Sven Guckes (guckes@math.fu-berlin.de):
  652.     You need these two "keylines":
  653.     [encode]
  654.     and
  655.     [clear]
  656.  
  657.     Just put your top secret messages in between these two lines.
  658.     See the "ELM Reference Guide", "5. Special Outgoing Mail Processing"
  659.     for an example.
  660.  
  661.     For all folks outside the US I might quote that little footnote:
  662.     "Unfortunately, at many non-US sites, it's quite probable that
  663.     you won't be able to use this feature since you won't have the
  664.     crypt() library available due to licensing restrictions."
  665.  
  666. 1.28    8 bit characters configuration?
  667.  
  668.     Hakan Sjogren (hakan@Sweden.Prime.COM)
  669.     reports both the problem and the solution:
  670.  
  671.     PROBLEM: When receiving mails having swedish characters
  672.     the display of these national characters on the terminal are wrong
  673.     when using ELM.  If I add the line
  674.     Content-type: text/plain charset=iso-8859-1
  675.     into this received mail, ELM displays correctly.
  676.     Since this is a normal situation I would assume ELM to display
  677.     full 8bit characters if the mail bandwith is set to 8bit.
  678.  
  679.     SOLUTION: The solution to this problem was to set the environment
  680.     variable LC_CTYPE=iso_8859_1 .
  681.  
  682. 1.29    Sun mailtool attachments and elm?
  683.  
  684.     Kurt Swanson (kurt@dna.lth.se):
  685.     > Has anyone hacked elm to support the Sun attachment
  686.     > style in the Openwindow's Mailtool?
  687.     This is handled by metamail, not well, unfortunately,
  688.     but handled that way in any case...
  689.  
  690. 1.30    How can I save outgoing mail ?
  691.  
  692.     Set the following in your elmrc file:
  693.  
  694.     # save a copy of all outbound messages?
  695.     copy = ON
  696.  
  697.     # save outbound messages by login name of sender/recipient even if the
  698.     # associated folder doesn't already exist?
  699.     forcename = OFF
  700.  
  701.     # save messages, incoming and outbound, by login name of
  702.     # sender/recipient?
  703.     savename = ON
  704.  
  705.     # where to save copies of outgoing mail to, default file is "=sent"
  706.     sentmail = ~/Mail/Spedita/sent
  707.  
  708. 1.31    Can I get an automatic receipt when my message is actually read?
  709.  
  710.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  711.     With Elm, you cannot.  Many people consider this an intrusion of
  712.     privacy, not a feature.
  713.  
  714. 1.32    Get a copy of message(s) into the edit buffer when composing a reply?
  715.  
  716.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  717.     Use the `readmsg' command.
  718.  
  719. 1.33    How can I print in Elm ?
  720.  
  721.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  722.     First thing you need to do is change the default print command Elm
  723.     gives you.  The compiled-in default of "cat %s | lp" is obsolete.
  724.     Simply use "lp" (or whatever) as your print command.  This will
  725.     pipe the message directly into the print command, and it will
  726.     leave stdout/stderr of the print command attached to your terminal.
  727.     That means that pass-through printing will work.  That means
  728.     problems and error messages will be displayed.  Making this change
  729.     might fix the problems you are having.  Even if it doesn't fix
  730.     them, at least now you'll be able to see the error diagnostics
  731.     rather than the mysterious `Printout failed' message.
  732.  
  733. 1.34    How can I get a complete elmrc file ?
  734.  
  735.     From inside ELm, type 'o' (Options) then '>' (Save).
  736.     This will create a complete elmrc file, with all options and
  737.     lots of comments. Remember that a leading "#" on a line denotes
  738.     a comment. Hence a line with leadin "###" is ALSO a comment.
  739.  
  740. 1.35    How can I change a configuration setting for all of my users?
  741.  
  742.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  743.     By creating a global elmrc file.  Copy your personal elmrc file
  744.     to $libdir/elm.rc, where $libdir is the Elm library directory
  745.     that holds the help files and other such things.  Edit that file.
  746.     The values it provides will override the compiled-in defaults.
  747.  
  748. 1.36    What do `Priority, Expires and Action' headers mean?
  749.  
  750.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  751.     Not a whole hell of a lot.  These are Elm-isms.
  752.     Priority: If you put a value in this header, *any* value other
  753.         than `normal' or `non-urgent', then Elm will put a `U' on
  754.         the index screen to note the message as urgent.
  755.     Expires: You can specify an interval up to 8 weeks from now
  756.         (e.g. `7 days').  When that date has been passed, Elm will
  757.         put a `E' on the index screen to note the message as expired.
  758.     Action: You can use this header to specify some action for the
  759.         recipient to take, and Elm will do absolutely nothing with it.
  760.  
  761. 1.37    What does the `Precedence' header mean?
  762.  
  763.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  764.     This is *not* an Elm-ism.  It is a sendmail-ism. :-)  It allows
  765.     you to specify handling instructions for the mail transport.  If
  766.     you have to ask this question -- you don't want to mess with it.
  767.  
  768. 1.38    How can I get a `Reply-To' header in all of my messages?
  769.  
  770.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  771.     Create a file called ~/.elm/elmheaders that contains the single
  772.     line:
  773.  
  774.     Reply-To: joe@AcmeWidgets.COM
  775.  
  776.     The contents of this file are slapped onto the end of the headers
  777.     that Elm generates for an outgoing message.
  778.  
  779. 1.39    ti/te strings for the xterm in termcap are wrong.
  780.  
  781.     * David W Sanderson (dws@ssec.wisc.edu):
  782.     Whoever wrote the default termcap and/or terminfo descriptions
  783.     for xterm included in the ti/te strings the special escape sequences
  784.     to make xterm switch between the normal and alternate screen buffers.
  785.      These sequences are:
  786.  
  787.         \E[?47h        - use alternate screen buffer
  788.         \E[?47l        - use normal screen buffer
  789.  
  790.     The elm code is just fine as it is.  If you change it so that it
  791.     doesn't ever send ti/te, you'll just break elm for somebody else.
  792.     Fix your termcap/terminfo definition instead.
  793.  
  794.     If this won't work,
  795.     * Neil Weisenfeld (weisen@alw.nih.gov):
  796.     change usetite in your .elmrc file to:
  797.         usetite = OFF
  798.  
  799. 1.40    Can I edit and forward without having the prefix (>) added
  800.     to the mail body?
  801.  
  802.     Forward the mail, answering NO at the edit? question.
  803.     Then, in the send menu, instead of s)ending it, e)dit it.
  804.  
  805. 1.41    Can I take an addres from a message and put it in the aliases list?
  806.  
  807.     David W. Tamkin (dattier@Mcs.Com):
  808.     Return to the index screen, make sure the pointer or bar is on a
  809.     letter from that person, and press "a" twice.  The first "a" puts
  810.     you into the alias subsystem and the second says to create an alias
  811.     for the sender of the current letter.
  812.  
  813. 1.42    sendmail 565c+IDA + Elm = SEGV. Why ?
  814.  
  815.     * Paul Pomes (paul@uxc.cso.uiuc.edu):
  816.     Either fix your Elm to use correct GMT offsets or apply the following
  817.     patch from Mike Park <mikep@dragoman.com>.
  818.  
  819.     *** 5.11.0.16   1992/08/26 22:06:32
  820.     --- arpadate.c  1993/03/10 21:38:23
  821.     ***************
  822.     *** 423,428 ****
  823.     --- 423,440 ----
  824.       #endif /* LOG */
  825.             return(NULL);
  826.         }
  827.     + 
  828.     +    /*
  829.     +     * Some buggy mailers (ie elm 2.4.p13) can produce huge incorrect
  830.     +     * offsets.  Applying these offsets can cause the static array
  831.     +     * used by gmtime to be overrun on a NeXT OS3.0 causing sendmail
  832.     +     * to SEGV.
  833.     +     * Limit offsets to be +- 24 hours.
  834.     +     */
  835.     +    if (h_offset < -24)
  836.     +        h_offset = -24;
  837.     +    if (h_offset > 24)
  838.     +        h_offset = 24;
  839.       
  840.             /* is the year a leap year? */
  841.             if ((tm.tm_year % 4 == 0) &&
  842.  
  843. 1.43    Can ELM use MH-style inboxes?
  844.  
  845.     * Steve Simmons (scs@lokkur.dexter.mi.us):
  846.     Elm does not currently do this.  It has been suggsted for Elm 3.0, but
  847.     3.0 is off in the mists of the far future.
  848.  
  849. 1.44    How can I enter a message that is in a folder into a message ?
  850.  
  851.     * Syd Weinstein (syd@Myxa.com):
  852.     Just use the readmsg command.  It is the external command that does
  853.     the same thing as ~m, and it understands the current mailbox sort
  854.     order, just like ~m.  From vi, I would put the cursor on the line
  855.     I want to repalce with the message and say "!!readmsg".
  856.  
  857. 1.45    I get my NIS/YP domainname appended to local mails. Why?
  858.  
  859.     * Dave Wolfe (dwolfe@pffft.sps.mot.com):
  860.     You have to run Configure again, and say NO to the question:
  861.     Should getdomainname() be used to obtain the mail domain?
  862.  
  863.     This is because when the getdomainname() system call is found, and
  864.     you run NIS, getdomainname() usually returns the NIS domain and not
  865.     the mail domain. The domain name should be compiled into the code.
  866.     If the getdomainname call does return the correct mail domain, it
  867.     can be used.
  868.  
  869. 1.46    How can I include a file in a header ? And a quote ?
  870.  
  871.     The elmheaders file allows the inclusion of the output of a command
  872.     which is run each time Elm reads elmheaders. This is useful for a
  873.     header which changes its contents, like a fortune output.
  874.     Unfortunately, if a header cointains "`", Elm tryes to execute what
  875.     follows. The workaround is: save the offending text in a file, then
  876.     include it like follows:
  877.         X-Foo: `cat /path/to/file`
  878.  
  879. 1.47    How can I build an alias containig "=" ?
  880.  
  881.     Quote it.  i.e. : "foo=bar"@net.org
  882.  
  883. 1.48    What's aliases limit ? # of aliases ? total lenght ?
  884.  
  885.     Aliases are limited by lenght. It's 5120 chars.
  886. 1.49    How can I change the editor ?
  887.  
  888.     In your elmrc file set editor=/path/to/editor
  889.  
  890. 1.50    How do I include a file in a mail message ?
  891.  
  892.     1) Normal plain text file:
  893.        see your editor's man page. In vi, :r /path/to/file
  894.  
  895.     2) executable or non-printable file:
  896.        see man uuencode. Then as 1)
  897.  
  898.     3) MIME-recognized file (gif, Postscript, ...):
  899.        [include /path/to/file type encoding]. Examples:
  900.            [include /path/to/file.gif image/gif base64]
  901.            [include /path/to/file.ps application/postscript]
  902.        See also MIME documentation.
  903.  
  904. 1.51    Which are the (s)ave abbreviations ?
  905.  
  906.     * David W. Tamkin (dattier@MCS.COM):
  907.     For saving to a folder, Copying to a folder, or changing folders
  908.     [or naming a folder on the command line as an argument to Elm's -f
  909.     option], Elm accepts several abbreviations:
  910.  
  911.     !        folder named in your $MAIL variable;
  912.             default: your mail spool
  913.     >        receivedmail folder named in your .elm/elmrc;
  914.             default: $maildir/received
  915.     <        sentmail folder named in your .elm/elmrc;
  916.             default: $maildir/sent
  917.     =filename    $maildir/filename
  918.     +filename    $maildir/filename [useful on the shell command line,
  919.             where an equal sign could confuse the shell]
  920.     @aliasname    folder in your $maildir directory named for the real
  921.             logname behind alias "aliasname"
  922.  
  923.  
  924. 1.52    Why do I get "folder corrupt" messages ?
  925.  
  926.     * Peter Churchyard (pjc@cc.ic.ac.uk):
  927.     If your folder (/usr/spool/mail/<login>) starts with a line of
  928.     ^A^A^A^A  and not 'From username', then you need to configure
  929.     Elm to use MMDF style message seperator lines.
  930.  
  931. 1.53    How to know how may news messages arrived, without entering Elm ?
  932.  
  933.     * Chip Rosenthal (chip@chinacat.unicom.com):
  934.     frm -S -q -s new
  935.  
  936. 1.54    How not to display header when reading mail ?
  937.  
  938.     Use the weedout option in the elmrc file.
  939.     You should find a line like this:
  940.         ### weedout = "*end-of-user-headers*"
  941.     Change it to:
  942.         weedout = "Header-to-elimitate"
  943.     To eliminate more than one header, add weedout lines as
  944.     appropriate. In my elmrc file I have, for example:
  945.         weedout = "X400-Received"
  946.         weedout = "X400-Originator"
  947.         weedout = "X400-Recipients"
  948.         weedout = "X400-Mts-Identifier"
  949.         weedout = "X400-Content-Type"
  950.         weedout = "X-Vms-From"
  951.         weedout = "X-Vms-To"
  952.  
  953. 1.55    Does Elm support headers within message body ?
  954.  
  955.     No, it doesn't.For example, you still need to specify
  956.     "-s <subject> even if you're calling it with "-i <file>"
  957.     and <file> contains the Subject header.
  958.  
  959. 1.56    How can I do <.....> with vi / my editor under Elm ?
  960.  
  961.     This is not an Elm question. Please refer to the appropriate
  962.     manual / doc / FAQ / whatever.  I'm sorry, but should I give
  963.     you answers on your editor, I'd end up writing a bad FAQ for
  964.     your editor and a bad FAQ for Elm.
  965.  
  966. 1.57    How can I scroll backwards w/ builtin editor ?
  967.  
  968.     You can't.
  969.     You can specify your favourite pager in your elmrc file
  970.     ( ~/.elm/elmrc ) by adding a line like:
  971.         pager = /usr/local/bin/less
  972.  
  973.     Should you choose "less", you can yse one of the following
  974.     lines, from Dave Ratcliffe (vogon1!frackit!dave@cse.psu.edu):
  975.  
  976.     pager = less -cEw
  977.     pager = less -C -e +Gg -P%f' ['%T'] ('%pb'\% ln '%lb/%L')'
  978.     pager = less -cEw -e +Gg -P%f' ['%T'] ('%pb'\% ln '%lb/%L')'
  979.  
  980.     or these from Andrew Duchowski (andrewd@sematech.tamu.edu):
  981.  
  982.     pager = less -C -e +Gg -M
  983.     pager = less
  984.     -C -e +Gg -P?f%f:'stdin'.'--('?pb%pb:'0'.'\%'?lb' line '%lb.')--'
  985.  
  986.     (You will put this on a single line: I split it for formatting
  987.     reasons).
  988.  
  989.     Remember to specify the full path to "less".
  990.  
  991. 1.58    How can I send the same message to a list of people ?
  992.  
  993.     There are 3 possible cases:
  994.  
  995.     1) You need to send a message to a huge list once in your life;
  996.     2) You sometimes send to a huge list;
  997.     3) You often / regularly send messages to a lot of people;
  998.  
  999.     1) type recipients' addresses by hand. If the list is really a
  1000.        long one, you can consider 2).
  1001.     2) if the list is static (i.e. you haven't to modify it each
  1002.        time), you can create aliases: simply press 'a' from the
  1003.        main menu, then follow the alias submenu help (really easy).
  1004.        Or you can use the 3rd method, which gives you more
  1005.        flexibility and (inmy opinion) ease-of-use;
  1006.     3) use the following script by John Woodburn (woodburn@indirect.com):
  1007.         #!/bin/sh
  1008.         file=/path/to/message
  1009.  
  1010.         read address
  1011.         while [ -n "${address}" ] ; do
  1012.             cat ${file} | /usr/bin/sendmail -oi -odb ${address}
  1013.             read address
  1014.         done
  1015.        The addresses' list is read from stdin, so you can store it in
  1016.        a file and run this srcipt, say "snd_msg" this way:
  1017.         snd_msg < /path/to/addresses/file
  1018.  
  1019.        If you want to use elm aliases in the file, you can substitute
  1020.        the line with "sendmail" in the script with:
  1021.         cat ${file} | /path/to/elm -s "subject" ${address}
  1022.  
  1023.     Another way to handle such mailings is to convince your system
  1024.     administrator to put a line like:
  1025.         foo    :include:/path/to/a/file
  1026.     in sendmail's system-wide aliases file, and give you write
  1027.     permission to this file. You can then use whatever mail program
  1028.     to mail to the list, and anybody sending a message to foo@your.site
  1029.     will reach the list.
  1030.  
  1031. 1.59    How can I resynchronize folder (deleting, etc) w/out exiting Elm ?
  1032.  
  1033.     From main menu, press '$'.
  1034.  
  1035.  
  1036. 2.0    Installation Answers
  1037. ----------------------------
  1038.  
  1039. 2.01    On SCO Xenix, all mail is from user anonymous. Why?
  1040.  
  1041.     From Elm README:
  1042.         On SCO Xenix, if you are all mail is from user anonymous,
  1043.     this is because the mail delivery agent should be
  1044.     /usr/lib/mail/execmail instead of /usr/bin/rmail or /bin/rmail.
  1045.  
  1046. 2.02    Elm doesn't work on Next. Why?
  1047.  
  1048.     The complete NeXT document by anderson@macc.wisc.edu is
  1049.     available via anon ftp from: yak.macc.wisc.edu [144.92.30.18]
  1050.     and ghost.dsi.unimi.it:/pub/Elm/Next.Z
  1051.  
  1052. 2.03    Compiling with Microsoft UNIX C Compilers won't work. Why?
  1053.  
  1054.     Thomas Bullinger (mrbulli@btoy1.rochester.ny.us):
  1055.     On many systems with the Microsoft UNIX C Compilers (such as SCO),
  1056.     compiling with optimization breaks the code.  One symptom is
  1057.     that aliases do not work.
  1058.     On those machines do not compile any of Elm with optimizations.
  1059.     To accomplish that, set all occurences of "OPTIMZE" in the
  1060.     makefiles to "-Od" - then it works.
  1061.  
  1062.     Another possibility is to use gcc instead (my current version [PL23]
  1063.     is compiled with gcc [2.4.5] on SCO Unix [3.2.2] without
  1064.     modifications and runs perfectly).
  1065. 2.04    Various problems on Unix 286.
  1066.  
  1067.     From Elm README:
  1068.         On some systems, especially those based on the AT&T Port to
  1069.     286's the -O flag of the compiler produces improper code causing
  1070.     segmentation violations.  If this happens, recompile the code without
  1071.     the -O flag.  This has been seen with Microport SysV/AT type systems.
  1072.  
  1073.         The Configuration script has been known to exceed the default
  1074.     stack size in Unix 286 sh's.  If Configure does not run correctly on
  1075.     this type of machine increase the stack size and rerun it.  On
  1076.     Microport SysV/AT machines, Configure might run correctly under ksh.
  1077.     Obtain ksh from Microport (available to current version owners without
  1078.     additional charge) and rerun Configure using it.
  1079.  
  1080.         Also on Microport SysV/AT Machines, the C compiler produces
  1081.     improper code for one of the arithmetic calls.  To fix this
  1082.     problem it is necessary to reduce the complexity of the
  1083.     statement, as reported by one of our testers here is the
  1084.     symptom and his patch.  Being this is a compiler bug on only
  1085.     one system, we make the information available, but not incorporate
  1086.     it in the main release.  Note, this may effect other areas
  1087.     of Elm, and in the future, Microport may even fix this problem.
  1088.     [Read the README file for the patches]
  1089.  
  1090. 2.05    Configure won't run on HP-UX. Why?
  1091.  
  1092.         From Elm README:
  1093.         The Configuration script has been known to exercise an old bug
  1094.     on HP-UX's version of /bin/sh.  This shows up as part of the variable
  1095.     setting section showing up on your screen, and configure aborting
  1096.     on errors.  If this happens, try using ksh instead of sh as in:
  1097.         ksh Configure
  1098.     this will usually solve the problem.
  1099.  
  1100. 2.06    Configure won't run on SCO XENIX 2.2.1. Why?
  1101.  
  1102.     Keith Brazington (keith@g4lzv.co.uk):
  1103.     The solution is simple, up the stack size for /bin/sh. I used 
  1104.  
  1105.     # mv /bin/sh /bin/sh.old
  1106.     # cp /bin/sh.old /bin/sh
  1107.     # fixhdr -F 8000 /bin/sh
  1108.      
  1109.     This may seem a bit over the top, but I put it back after!
  1110.  
  1111. 2.07    Will Elm work on SGI Indigo?
  1112.  
  1113.         Syd Weinstein (syd@Myxa.com):
  1114.     Well, I had no problems at all configuring and running Elm
  1115.     on my SGI Iris under 4.0.5.
  1116.     The biggie for SGI is to say Elm is a non ansi application,
  1117.     so you need to  list -cckr as an additional compilation flag.
  1118.     I took all the defaults from configure and it ran just fine.
  1119.  
  1120. 2.08    I have problems compiling elm2.4 on HP/Apollo
  1121.  
  1122.     * Gordon D. Berkley (gordonb@mcil.comm.mot.com):
  1123.     As of ELM2.4pl17, The system compiles cleanly (?) for Apollo.
  1124.     This patch level includes many "fixes" that I submitted to ensure
  1125.     this.  There *are* many compilor warnings, but they can safely
  1126.     be ignored.
  1127.  
  1128.     I would suggest discarding any config.sh from a previous Configure,
  1129.     though, as this will cause the corrections to NOT work.
  1130.  
  1131.     In order to ensure compilation, please be sure to compile
  1132.     with SYSTYPE set to "sys5" rather than "bsd".
  1133.  
  1134. 2.09    I have problems compiling elm2.4 on IBM AIX
  1135.  
  1136.     * Steve Adams (adams@spss.com):
  1137.     >I am trying to compile the latest and greatest version of ELM on my
  1138.     >RS/6000 running 3.2.? (exact level unclear). I received the following
  1139.     >error messages about setgid being redefined:
  1140.     >
  1141.     >"init.c", line 128.16: 1506-132 (S) Function getgid cannot be
  1142.     >redeclared.
  1143.     >"init.c", line 128.26: 1506-132 (S) Function getuid cannot be
  1144.     >redeclared.
  1145.  
  1146.     You can get around the problem defining -U__STR__ during 'Configure'
  1147.     It will be fixed in PL22.
  1148.  
  1149.     * From the monthly posting:
  1150.         This version of Elm 2.4 should not require any changes
  1151.         to the configure run to link under AIX 3.2 or newer.
  1152.     On IBM RISC 6000 AIX, prior to 3.2, you might get string
  1153.         function errors on the compile.
  1154.     The solution is to do the following:
  1155.  
  1156.     Look at /usr/lpp/bos/bsdsport. It tells you to add
  1157.     following lines to /etc/xlc.cfg:
  1158.         * BSD 4.3 c compiler stanza
  1159.         bsdcc:  use        = DEFLT
  1160.             crt        = /lib/crt0.o
  1161.             mcrt       = /lib/mcrt0.o
  1162.             gcrt       = /lib/gcrt0.o
  1163.             libraries  = -lbsd, -lc
  1164.             proflibs   = -L/lib/profiled,-L/usr/lib/profiled
  1165.             options    = -H512,-T512, -qlanglvl=extended, -qnoro,
  1166.                      -D_BSD, -D_NONSTD_TYPES, -D_NO
  1167.  
  1168.         And then link bsdcc to xlc and use bsdcc instead of cc.
  1169.  
  1170.     In addition, Elm should be linked with the curses lib
  1171.     and not termcap lib if /etc/termcap is not there.
  1172.     (You can always copy the termcap database to etc
  1173.     (or make a symlink)).
  1174.  
  1175. 2.10    Compiling elm 2.4 under NS 3.0
  1176.  
  1177.     Paul Terray (popaul@binkley.cs.mcgill.ca):
  1178.     Check if fcntl.h is included somewhere (as it probably is).
  1179.     It contains most of the declaration the program are looking for.
  1180.     If not, include it. Then, just comment the include line for unistd.h.
  1181.  
  1182. 2.11    Elm sends 'empty mail' on 386BSD: why?
  1183.  
  1184.     * From the monthly posting:
  1185.     On 386bsd, the shell that is shipped with the system,
  1186.     ash, does not work for sending messages within Elm.  Mail
  1187.     messages have headers only and no body.  Replacing the shell
  1188.     with bash (from GNU) seems to solve the problem.  The bash
  1189.     shell is in the 'etc' distribution of 386BSD.
  1190.  
  1191.     * If you upgrade to current version, this should happen no more.
  1192.  
  1193. 2.12    Why can't I get SGI to work for non ROOT?
  1194.  
  1195.         From the monthly posting:
  1196.         SGI, at 3.3, doesn't have vfork, but instead a stub that does
  1197.         not work.  Make sure vfork is undef in the configuration.
  1198.  
  1199. 2.13    I have problems p)rinting messages in 2.4PL20
  1200.  
  1201.     When I try and print a message, I get
  1202.     "readmsg: Cannot find start of selected message". Why?
  1203.  
  1204.     Chip Rosenthal (chip@chinacat.Unicom.COM):
  1205.     Please take a look at the From_ line of the message you are trying to
  1206.     print.  I'm going to guess that it has a complex address, maybe with
  1207.     some quoting or special characters, or maybe a strange date syntax.
  1208.  
  1209.     The utilities in the current Elm release (including `readmsg') use
  1210.     very simpleminded routines to crack the From_ lines.  Some headers
  1211.     that Elm handles fine confuse these utilities.  One of the larger
  1212.     changes in the next Elm update will be moving all of the From_ and
  1213.     ~Date: processing out of the main Elm code and into the library, so
  1214.     the utilities (including `readmsg') will use the same algorithms as
  1215.     Elm.
  1216.  
  1217.     If you look at the From_ line and it doesn't seem particularly
  1218.     unusual, feel free to drop me a line.  Most of the changes to
  1219.     readmsg and Elm printing came from my hands, and I'm working on
  1220.     the aforementioned changes too.  If there is something else broke
  1221.     in there, I'd be glad to look at it.
  1222.  
  1223. 2.14    Elm2.4 PL20 - 'x' key causes segmentation violation
  1224.  
  1225.     Nigel Metheringham (nigelm@ohm.york.ac.uk):
  1226.     in the file src/exitprog.c, there is a line
  1227.         char *msg, answer;
  1228.     replace it with
  1229.         char msg[SLEN], answer;
  1230.  
  1231. 2.15    readmsg:illegal option -- I. Why?
  1232.  
  1233.     Chip Rosenthal (chip@chinacat.Unicom.COM):
  1234.     It means you installed an updated `elm' binary but continue
  1235.     to use an old version of `readmsg'.
  1236.  
  1237. 2.16    Forms don't work. Why?
  1238.  
  1239.     Syd Weinstein (syd@Myxa.com):
  1240.     If you have `forms = ON' in elmrc, Forms is there, but
  1241.     the menu items to make a form require that user level
  1242.     be set off beginner.  (anything but 0 (beginner))
  1243.  
  1244. 2.17    ELM does not recognize VMS mail. Why?
  1245.  
  1246.     * This is fixed in Pl22.
  1247.     
  1248.     * Syd Weinstein (syd@Myxa.com):
  1249.     Looks to me like you found a bug in Elm's quote parsing routines.
  1250.     It just needs to be looked into.
  1251.  
  1252.     Reported from: Steen Hammerum (kel2sh@uts.uni-c.dk)
  1253.  
  1254. 2.18    Huge headers cause Memory Fault. Why?
  1255.  
  1256.     Syd Weinstein (syd@Myxa.com):
  1257.     Any part of Elm at the 2.x level will abort if given a header line
  1258.     that is too long.  It uses fixed length buffers, and at some point
  1259.     they overflow, and none too gracefully.
  1260.     3.x will support dynamic strings to solve this problem.
  1261.  
  1262. 2.19    Can I use elm for posting and replying to news?
  1263.  
  1264.         * Andreas Spiegl (spiegl@cs.utexas.edu):
  1265.         In order to set things up so elm is your mailer when you
  1266.         respond r or R to a news article in rn or trn, define an
  1267.         environment variable RNINIT that points to an initialization
  1268.         file for rn/trn. E.g. .rnrc
  1269.         Then put the following line in this file (.rnrc):
  1270.         -EMAILPOSTER="elm -i %h -s \"Re: %S\" %t"
  1271.         This is from now on telling rn to start elm with the appropriate
  1272.         parameters whenever you reply to an article and works great.
  1273.         But:  --> This is not for followup postings on the usenet! <--
  1274.         If you want to use elm in order to post article, you'd need a
  1275.         line with -ENEWSPOSTER instead of -EMAILPOSTER. Then you would
  1276.         tell elm (once it was evoked by rn/trn) that you want to send
  1277.         this to newsgroupname-with-dashes-instead-of-dots@cs.utexas.edu,
  1278.         for example use "comp-mail-misc@cs.utexas.edu". This will post
  1279.         your email message to the usenet.
  1280.         This is not very convenient though, as you have to convert the
  1281.         address manually. Unless you write a nice script for it, of course.
  1282.         Be sure to send me a copy if you do. :-)
  1283.  
  1284.         * Mike O'Connor (mjo@iao.ford.com):
  1285.         Of course, the DEC gateway allows one to gateway email to Usenet with
  1286.         email addresses of the following format:
  1287.         comp.mail.misc.usenet@decwrl.dec.com
  1288.         and has the additional advantage that they carry a LOT of the regional
  1289.         newsgroups.
  1290.         I still think piping it to sendmail with a macro for R is the way to
  1291.         go.  This allows you to use the mailer of your choice, be it elm or
  1292.         pine or Berkeley Mail or Z-Mail or whatever.  This gets it into your
  1293.         /usr/spool/mail or /usr/mail or /var/mail or wherever.
  1294.         
  1295.     * Robert Nicholson (robert@steffi.demon.co.uk)
  1296.     The objective was to be able to use elm for all news contributions,
  1297.     reply/followup.  This way I can then store my postings and replies
  1298.     in =sent or filter based on Subject: and store them in a separate
  1299.     folder.
  1300.  
  1301.     For Replies I added the following to .zshenv:
  1302.     export MAILPOSTER="elm -i %h -s \"Re: %S\" %t"
  1303.  
  1304.     This invokes elm for replies within trn.
  1305.  
  1306.     For Followups it's a bit more involved.
  1307.     Now I didn't like the idea of relying on mail2news gateways in order
  1308.     to post news.  So I chose to set up an alias to handle postings:
  1309.     export NEWSPOSTER="elm -i %h -s \"Usenet News Post\n\n\" usenetnews"
  1310.  
  1311.     The postings go to the usenetnews (as opposed to usenet) alias.
  1312.     This gets processed in procmail thus.
  1313.  
  1314.     :0b
  1315.     * ^TOusenetnews
  1316.     | sed -n '/Newsgroups/,$p' | /usr/local/news/inews -h
  1317.  
  1318. 2.20    Compile fails on lib/strftime.c [PL23].
  1319.  
  1320.     * Chip Rosenthal (chip@chinacat.Unicom.COM):
  1321.     A bug was introduced at PL23 that causes the compile to fail on
  1322.     pre-ANSI systems.  Change line 114 from "# define P_(x) /**/"
  1323.     to "# define P_(x) ()".
  1324.  
  1325. 2.21    Compile error on SGI Crimson.
  1326.  
  1327.     Error:
  1328.         cc  -O -I../hdrs    -c opt_utils.c
  1329.     accom: Warning 294: opt_utils.c, line 171:
  1330.     Function getpwuid has prototyped and non-prototyped declarations.
  1331.     Default promotion of non-prototype form of argument 1 does not
  1332.     match prototype:
  1333.     prototype:  unsigned short is different from actual:  int
  1334.  
  1335.     * Spencer Sun (spencer@der.Princeton.EDU):
  1336.     in Configure, tell it to use the -cckr flag for cc.
  1337.  
  1338. 2.22    Problem compiling elm on DEC Alpha, OSF/1 v.1.2
  1339.  
  1340.     Error:
  1341.     getarpdate.c, line 110: redeclaration of 'timezone';
  1342.  
  1343.     * Eiji Hirai (hirai@cc.swarthmore.edu):
  1344.     This is fixed in elm 2.4p23 ; I think By the way, you
  1345.     should most definitely upgrade to DEC OSF/1 1.3.
  1346.     It fixes a tremendous number of bugs from 1.2.  Do it NOW!  :-)
  1347.  
  1348. 2.23    I can't build Elm 2.4PL23 on Sun 386i SunOS 4.0.2
  1349.  
  1350.     * Sydney Weinstein (syd@Myxa.com):
  1351.     known bug, will be fixed in Patch 24, but its an easy one:
  1352.     in lib/strftime.c, there is a bug in the prototyping macro, it
  1353.     currently reads:
  1354.     #if ANSI_C
  1355.     # define P_(x) x
  1356.     #else
  1357.     # define P_(x) /**/
  1358.     # define const  /**/
  1359.     #endif
  1360.  
  1361.     and the relevant line needs to read
  1362.     # define P_(x) (/**/)
  1363.  
  1364.     thats it.
  1365.  
  1366. 2.24    How can I override a Configure's setup ?
  1367.  
  1368.     If you know what Configure makes wrong before running it, then create
  1369.     a file "config.over" with your own choices.
  1370.     If you don't know it, manually edit Configure output.
  1371.  
  1372. 2.25    How to solve hdrs/mcprt.h problems with Sequent/PTX 2 ?
  1373.  
  1374.     Alan Thew (Alan.Thew@liverpool.ac.uk) reports the following:
  1375.     >PTX 2.0x does not like the code in this header file.
  1376.     >
  1377.     >       cc -Xo  -O -I../hdrs    -c mcprt.c
  1378.     >"../hdrs/mcprt.h", line        52: syntax error
  1379.     >"../hdrs/mcprt.h", line        53: syntax error
  1380.     >"../hdrs/mcprt.h", line        53: incomplete or misplaced function definition
  1381.  
  1382.     >extern int             MCprintf(char *fmt, ...);  <-----
  1383.  
  1384.     * Chip Rosenthal (chip@chinacat.Unicom.COM) says:
  1385.     The first question is does your system truly support the ANSI
  1386.     <stdarg.h> facility, or does it use the traditional Unix <varargs.h>?
  1387.  
  1388.     If the first case is true, then your compiler has botched the
  1389.     implementation for specifying prototypes for variable-argument
  1390.     procedures.  It's possible.  I know of at least one compiler that was
  1391.     done while the ANSI spec was still in development, and used an
  1392.     unadorned comma at the end of the parameter list to prototype varargs
  1393.     routines.
  1394.  
  1395.     In this case, you'll need to edit the function declarations in mcprt.h
  1396.     Maybe just deleting the "..." ellipses will work.  (It would with the
  1397.     aforementioned compiler.)  Maybe you'll have to scrap the prototype
  1398.     by removing everything between the parens.
  1399.  
  1400.     If the second case is true, then Configure made a boo-boo.  It saw a
  1401.     <stdarg.h> file and decided to use that.  If this was the wrong thing
  1402.     to do, then you can override Configure by creating a file called
  1403.     "config.over" with a single line saying:
  1404.  
  1405.         i_stdarg='undef'
  1406.  
  1407.     Then run "Configure -d" to rebuild things and re-make.
  1408.  
  1409.     * I'll give you the right answer as soon as Alan Thew will tell me
  1410.     how did he solve this problem.
  1411.  
  1412.  
  1413. 3.0    Filter Answers
  1414. ----------------------
  1415.  
  1416.     This part is maintained by Jan Djarv (Jan.Djarv@sa.erisoft.se)
  1417.  
  1418. 3.01    What documentation exists for filter?
  1419.  
  1420.     Besides the man-page (which is rather brief) there is the
  1421.     `Elm Filter System Guide' (doc/Filter.guid in the elm distribution).
  1422.     A PostScript version is available on dsinc.Myxa.com. 
  1423.  
  1424. 3.02    What do I need to get filter working?
  1425.  
  1426.     You need a MTA (Mail Transport Agent) that reads .forward files
  1427.     AND let's you mail to a program.
  1428.  
  1429.     A .forward file is put in your home directory, where it is read
  1430.     by your MTA. It is here you tell your MTA to pipe the messages
  1431.     to filter instead of putting it in your mailbox.
  1432.  
  1433. 3.03    How can I tell if my system understands .forward files?
  1434.  
  1435.     This usually works:
  1436.     Make a .forward file in your home directory with the following
  1437.     contents:
  1438.  
  1439.     \userid, "|/bin/cat - > /your/home/directory/forward.test 2>&1"
  1440.  
  1441.     where userid is your username and /your/home/directory is the
  1442.     full path to your home directory. The \ is there to avoid
  1443.     infinite recursion (i.e. if it wasn't there, the MTA would read
  1444.     your .forward again, and see userid a second time, and read your
  1445.     .forward again and on and on ...)
  1446.  
  1447.     Then mail yourself a message. If all goes well you should have
  1448.     1. A message in your incoming mailbox.
  1449.     2. A file forward.test that contains the same message as in 1.
  1450.  
  1451.     If you get 1 but not 2, it is possible that your MTA doesn't
  1452.     support mailing to programs. Take it up with your system
  1453.     administrator.  It might also be the case that your MTA has another
  1454.     syntax for mailing to programs.
  1455.  
  1456. 3.04    What do I put in my .forward file?
  1457.  
  1458.     "|/full/path/to/filter -vo /some/unique/file"
  1459.  
  1460.     (note the placements of the quotes, this is for sendmail at least,
  1461.     there are possibly other MTA:s out there that want's it different.
  1462.     Try finding a manual if the above doesn't work).
  1463.  
  1464.     Always use the full path to filter. Your MTA probably has a
  1465.     different PATH than the one you have.
  1466.  
  1467.     Also you should personalize your line by for instance
  1468.     redirect the errors of filter (that's what -o does, -v just makes
  1469.     the errors a bit more verbose) to a file that is unique on
  1470.     your system. /tmp/filter.userid (userid == your user name) usually
  1471.     does it.
  1472.  
  1473.     * Syd Weinstein (syd@Myxa.com)
  1474.     explains why your line should be personalized:
  1475.  
  1476.     Its not a bug, but a feature of sendmail. Sendmail prevents duplicate
  1477.     deliveries to addresses, so a message sent to "a, b, a, b, c"
  1478.     would be delivered to "a, b, c", but only one copy to a and b.
  1479.     Sendmail does this by sorting and 'uniq'ing the list of addresses.
  1480.     If two people's filter invocations in the .forward file match,
  1481.     sendmail will gladly coallese these down to one as a duplicate
  1482.     delivery address, and the result is exactly what you describe.
  1483.  
  1484.     Just get everyone to make their .forward line personal (add a unique
  1485.     -o file perhaps) and all will work ok.
  1486.  
  1487.     * John Walder (walder@alexia.lis.uiuc.edu ):
  1488.  
  1489.     If you have the source code for sendmail, try the following patch to
  1490.     the sameaddr() function in the file src/parseaddr.c.  It still
  1491.     eliminates duplicate recipients but not duplicate programs (filters).
  1492.     This solution is more elegant than continually fixing .forward files.
  1493.  
  1494.     ---------------------------------------------------------------------
  1495.  
  1496.     *** parseaddr.c-    Tue May  4 10:55:42 1993
  1497.     --- parseaddr.c    Tue May  4 11:42:52 1993
  1498.     ***************
  1499.     *** 1525,1530 ****
  1500.     --- 1525,1538 ----
  1501.         if (a->q_mailer != b->q_mailer)
  1502.             return (FALSE);
  1503.     
  1504.     +    /* -- 05/04/93 jdw  LOCAL CHANGE
  1505.     +        Allow recipients to forward to the same program/filter!
  1506.     +        Have same mailer, so check for delivery to a program
  1507.     +    */
  1508.     +    /* fprintf(stderr, "sameaddr(%s,%s)\n", a->q_user, b->q_user); */
  1509.     +     if (a->q_mailer == ProgMailer)
  1510.     +         return (FALSE);
  1511.     +    /* -- End LOCAL CHANGE */
  1512.     + 
  1513.         /* if the user isn't the same, we can drop out */
  1514.         if (strcasecmp(a->q_user, b->q_user))
  1515.             return (FALSE);
  1516.  
  1517. 3.05    What is the simples filter-rules file I can write to test filter?
  1518.  
  1519.     Well, the simplest is:
  1520.  
  1521.     always leave
  1522.  
  1523.     which tells filter that it should always put the messages into your
  1524.     default mailbox.
  1525.     A more interesting example would be:
  1526.  
  1527.     if (subject contains "filter-test") then save "~/filter-folder"
  1528.       
  1529.     which tells filter to save all messages with a Subject: field that
  1530.     contains filter-test into the file filter-folder in your home
  1531.     directory.
  1532.     All other messages will be put into your normal incoming mailbox,
  1533.     since that is filters default rule if no other match.
  1534.     You can then look at the messages in filter-folder with elm
  1535.     (elm -f ~/filter-folder).
  1536.  
  1537. 3.06    How do I check my filter-rules for typos and other errors?
  1538.  
  1539.     Run 'filter -r'. See also the next question.
  1540.  
  1541. 3.07    Why doesn't the output from filter -r match my filter-rules file?
  1542.  
  1543.     Filter reads the rules and converts them to an internal format. When
  1544.     it writes them out again, it writes them in a canonical format.
  1545.  
  1546.     This is due to the fact that filter has a loose input syntax.
  1547.  
  1548.     Each rule is turned into an 'if (...) then ...'.
  1549.  
  1550.     The following words are translated:
  1551.  
  1552.     contains    becomes        =
  1553.     &&        becomes        and
  1554.     then        becomes        ?
  1555.     matches        becomes        ~
  1556.  
  1557. 3.08    Can I have 'or' in my filter-rules?
  1558.  
  1559.     No, filter can't deal with that. Or is implemented by writing another
  1560.     rule below the one you want to 'or' with.
  1561.  
  1562. 3.09    Can I make filter execute more than one rule for a message?
  1563.  
  1564.     No. As soon filter find's one applicable rule, it executes that one
  1565.     and exits.
  1566.  
  1567. 3.10    How do I do multiple actions for one rule?
  1568.  
  1569.     You can't do that directly in the filter-rules file. You have to
  1570.     write a shell script or program that does what you want, and then call
  1571.     it with the execute or executec action.
  1572.  
  1573. 3.11    What headers are available in the filter-rules?
  1574.  
  1575.     From, To, and Subject.
  1576.  
  1577.     If you answered yes to Configure when it asked "Does your site
  1578.     receive e-mail with valid "Reply-To:" and "From:" fields?", the
  1579.     From field will be the From: header, or the Reply-To: header if
  1580.     one is available (Reply-To: supersedes From:).
  1581.  
  1582.     If you answered no, the From line is the From_ header.
  1583.  
  1584.         The To field is the concatenation of the To:, Apparently-To:
  1585.     and the Cc: headers.
  1586.  
  1587. 3.12    How do I forward mail to an elm alias from filter?
  1588.  
  1589.     Let's say you want to do
  1590.  
  1591.     if (subject = hello) forward "mail-alias"
  1592.  
  1593.     where mail-alias is an alias you have defined in elm.
  1594.     The sad part is that filter doesn't know about elm aliases.
  1595.     You have to do something like this:
  1596.  
  1597.     if (subject = hello) executec "/full/path/to/elm -s '%s' mail-alias"
  1598.  
  1599. 3.13    Filter executes my script but the script doesn't work.
  1600.     It does work if I run it prom my shell prompt. Why?
  1601.  
  1602.     Never assume that the script filter executes has the same PATH that
  1603.     you have when logged in.
  1604.  
  1605.     Always set the PATH explicitly at the beginning of your script.
  1606.  
  1607. 3.14    How do I capture the message fed to a script by execute/executec
  1608.     for later processing?
  1609.  
  1610.     At the start of your script:
  1611.  
  1612.     /bin/cat - > /tmp/mail$$
  1613.  
  1614.     Then you can grep, and examine /tmp/mail$$ as you would an ordinary
  1615.     file. Don't forget to remove /tmp/mail$$ if you don't need it
  1616.     afterwards.
  1617.  
  1618. 3.15    Both execute and executec feeds the message as standard input to
  1619.     the script. But what if I don't need it?
  1620.  
  1621.     Just ignore it.
  1622.  
  1623. 3.16    What if I what to do something based on the contents of a message
  1624.     (i.e not the headers), or based on some header not available in filter?
  1625.  
  1626.     Feed the message to a script using execute/executec, save it
  1627.     and do your stuff in the script.
  1628.  
  1629. 3.17    How can I make filter operate on all messages in a folder?
  1630.  
  1631.     You can't directly, but you can make a little script that does the job:
  1632.  
  1633.     #!/bin/sh
  1634.  
  1635.     frm -n $1 |
  1636.     while read no rest
  1637.     do
  1638.         no=`echo $no|sed 's/[^0-9]//g'`
  1639.         readmsg -h $no | filter -vo /what/usually/goes/here
  1640.     done
  1641.  
  1642.  
  1643.     Start the script with the folder name as argument.
  1644.     NOTE: this script is an example, and doesn't work on empty folders.
  1645.     If your filter rules try and put something into the folder the
  1646.     script  is currently operating on, disaster occurs.
  1647.  
  1648. 3.18    Can I use filter to automatically answer my mail (like vacation)?
  1649.  
  1650.     If you are on vacation you might do something like this:
  1651.     In your filter-rules:
  1652.  
  1653.     always executec "/path/to/vac.script %s %r"
  1654.  
  1655.     In vac.script:
  1656.     --
  1657.     #!/bin/sh
  1658.     PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin
  1659.     export PATH # Make sure that the PATH above includes elm
  1660.     elm -s "Re: $1" $2 <<EOM
  1661.  
  1662.     Hi.
  1663.  
  1664.     I got your message about "$1". Im not in now but will get
  1665.     back to you as soon as I'm back.
  1666.  
  1667.     EOM
  1668.     --
  1669.  
  1670.     You can also execute "vacation" if you have it.
  1671.  
  1672. 3.19    My filter doesn't recognize executec/matches.
  1673.  
  1674.     Executec and matches was added in Elm 2.4 PL11.
  1675.     Try getting a newer Elm.
  1676.  
  1677. 3.20    Filter sometimes munges up my folders, or looses messages. Why?
  1678.  
  1679.     If two instances of filter are running at the same time, and are
  1680.     operating on the same folder, you get this effect. Filter doesn't
  1681.     lock your private folders (i.e not incoming folder), so the two
  1682.     instances will never know that there is someone else operating on
  1683.     the same folder.
  1684.  
  1685.     This usually occurs if you are receiving mail on more than one
  1686.     machine, and your home directory is shared (via NFS, for instance)
  1687.     between the machines AND you manipulate your folders from both
  1688.     machines.
  1689.  
  1690.     The solution is usually to forward all your mail to one machine and
  1691.     run filter on that single machine.
  1692.  
  1693. 3.21    Why doesn't elm mark mail I saved in a folder with filter as new (N)?
  1694.  
  1695.     * Elm does only mark new messages as new in your incoming folder.
  1696.     Sometimes you want it that way, sometimes you don't.
  1697.     If you are sure you want new messages to be marked as such in
  1698.     any folder, you need to edit the source for Elm, and recompile.
  1699.  
  1700.     Search for these lines in src/newmbox.c:
  1701.         if(folder_type == SPOOL)
  1702.           current_header->status = VISIBLE | NEW | UNREAD;
  1703.         else
  1704.           current_header->status = VISIBLE;
  1705.  
  1706.     and change them to:
  1707.         current_header->status = VISIBLE | NEW | UNREAD;
  1708.  
  1709.     * Jennifer Myers (jmyers@eecs.nwu.edu):
  1710.     You should also modify the code for 'frm' and 'nfrm', so that those
  1711.     utilities will recognize new mail in the users's mail folders.
  1712.     In utils/from.c, the following code appears twice:
  1713.  
  1714.     if (user_mailbox)
  1715.         status = NEW_MSG;
  1716.     else
  1717.         status = READ_MSG;
  1718.  
  1719.     Change both occurrences of the above lines to:
  1720.  
  1721.     /* if no Status header, assume NEW_MSG */
  1722.     status = NEW_MSG;
  1723.  
  1724.     * William Pemberton (wfp5p@holmes.acc.Virginia.EDU) also wrote
  1725.     a set of patches to do this.
  1726.  
  1727. 3.22    Why does filter join adjacent messages together?
  1728.  
  1729.     * Aidan M Corey (jo95005@oxford.ac.uk):
  1730.     The first line in a piece of mail is a From_ line; this is used by
  1731.     Elm to tell where one message in the mailbox ends and a new one
  1732.     starts.  Unfortunately, on some systems this line is lost.  If
  1733.     the first message in the mailbox went through filter, Elm will refuse
  1734.     to run, saying that the mailbox is corrupt.  If a filtered message
  1735.     follows another message, Elm will interpret them as a single message.
  1736.  
  1737.     A patch for this is to have a .forward containing
  1738.  
  1739.     "|/full/path/to/mailkludge"
  1740.  
  1741.     where mailkludge is a world-executable file containing
  1742.  
  1743.     #!/bin/sh
  1744.     (echo From fubar `date`;cat) | /full/path/to/filter
  1745.     exit 0
  1746.  
  1747. 3.23    What other mail filter programs exists?
  1748.  
  1749.     Filter is a very simple program and has limitations.
  1750.     If you have something complicated you want to do,
  1751.     and it is difficult to do with Filter, you should check out the
  1752.     more powerful alternatives: deliver, procmail or mailagent.
  1753.  
  1754.     More info on these can be found in the UNIX Email Software Survey FAQ
  1755.     (see news.answers or comp.mail.misc).
  1756.  
  1757. 3.24    554 "|/usr/local/bin/filter"... unknown mailer error
  1758.  
  1759.     This happens if your system administrator disabled the pipe
  1760.     inside sendmail. It is due to a security hole in sendmail.
  1761.     Check CERT advisories to know more on this.
  1762. 3.25    My filter doesn't work. I set it up correctly, but nothing happens.
  1763.  
  1764.     Sendmail has a security hole which fix may cause pipe in .forward
  1765.     to be ignored. This isn't the correct fix to the hole, but is the
  1766.     most secure. Check with your system administartor.
  1767.  
  1768.     * from Jack Moskowitz (jackm@qa.pica.army.mil):
  1769.     Moreover, some versions of sendmail have another bug, which will
  1770.     cause mail addresses to be ignored if two addressees have the same
  1771.     entries in thier .forward files. This is to inhibit multiple
  1772.     delivery to the same address.  The problem is that sendmail makes
  1773.     no distinction about addresses and "| program".
  1774.  
  1775.     * from David W. Tamkin (dattier@MCS.COM):
  1776.     The easy solution is to put your own logname as a comment in the
  1777.     pipe, like this:
  1778.         "| /path/to/filter # jackm"
  1779.     sendmail will think that that's different from
  1780.         "| /path/to/filter # bigboss"
  1781.     and will deliver to both addressees.
  1782.  
  1783. 3.26    How to (b)ounce from filter, instead of (f)orwarding ?
  1784.  
  1785.     When forwarding mail thru filter, the forwarded message appears
  1786.     from "Filter of <myself>" instead of the actual sender. How to
  1787.     avoid this ?
  1788.  
  1789.     * Aidan Corey (Aidan.Corey@sjc.ox.ac.uk):
  1790.     After some experimentation, I arrived at:
  1791.       if (condition) then execute
  1792.               "/usr/lib/sendmail -oi -odq your@other.address"
  1793.  
  1794.     If your system doesn't use sendmail, you would need to modify this.
  1795.     If it does, read man sendmail for the meanings of the switches I used.
  1796.  
  1797. 3.27    If I use filter, all incoming mail disappears. Why ?
  1798.  
  1799.     Newer versions of sendmail fix a security hole by not allowing
  1800.     piping a message to a program. Sendmail's configuration changed
  1801.     a bit, also, and it's possible that your local Postmaster didn't
  1802.     configure it properly. If it's so, there's no wy getting sendmail
  1803.     using filter. Check with your Postmaster.
  1804.  
  1805.  
  1806. 4.0    Bugs list
  1807.  
  1808.     This list is included for completeness in the ftp version only.
  1809.     please, ftp to ghost.dsi.unimi.it as stated at the beginning
  1810.     of this FAQ to get it.
  1811.  
  1812.     You can get it via a mail server,too:
  1813.     send a mail to elmbygs@ohm.york.ak.uk, with Subject: command
  1814.     and "@SH elmbugs <your email addr>" as the body.
  1815.  
  1816. 5.0     Archivers
  1817.  
  1818.     This is the list of Internet and UUCP sites distributing
  1819.     the latest version of Elm, from the Elm monthly posting.
  1820.  
  1821. 5.0.1   The following sites have agreed to make Elm available
  1822.     via anonymous ftp.
  1823.  
  1824.     Site            Contact
  1825.  
  1826.     In the US/Canada:
  1827.     -----------------
  1828.     wuarchive.wustl.edu    chris@wugate.wustl.edu (Chris Myers)
  1829.         (128.252.135.4)
  1830.     /packages/mail/elm
  1831.  
  1832.     ftp.uu.net
  1833.     (137.39.1.9, 192.48.96.9)
  1834.     /networking/mail/elm
  1835.  
  1836.     In Europe:
  1837.     ----------
  1838.     ftp.cs.ruu.nl        Edwin Kremer, edwin@cs.ruu.nl
  1839.     (131.211.80.17)
  1840.     /pub/ELM-2.4
  1841.  
  1842.     ftp.th-darmstadt.de    ftpadmin@ftp.th-darmstadt.de
  1843.     (130.83.55.75)
  1844.     /pub/networking/mail/elm
  1845.  
  1846.     In the UK:
  1847.     ----------
  1848.     uk.ac.soton.ecs        T.Chown@ecs.soton.ac.uk (bitnet)
  1849.     (152.78.64.201)            T.Chown@uk.ac.soton.ecs (JANET)
  1850.  
  1851.     ftp.demon.co.uk        Cliff Stanford, cliff@demon.co.uk
  1852.     (158.152.1.65)
  1853.     /pub/unix/mail/elm
  1854.  
  1855.         src.doc.ic.ac.uk    L.McLoughlin@doc.ic.ac.uk
  1856.         (146.169.2.10)
  1857.         /computing/mail/elm
  1858.  
  1859.         In Australia:
  1860.     -------------
  1861.         ftp.adelaide.edu.au     Mark Prior, mrp@itd.adelaide.edu.au
  1862.         (129.127.40.3)
  1863.     /pub/mailers
  1864.  
  1865.     In Taiwan:
  1866.     ----------
  1867.     NCTUCCCA.edu.tw        Huang, Chih-Hsien hch@NCTUCCCA.edu.tw
  1868.     (140.111.1.10 and 192.83.166.10)
  1869.     /packages/mail/elm
  1870.  
  1871. 5.0.2    The following sites have agreed to make Elm available
  1872.     via anonymous uucp:
  1873.  
  1874.         Site                    Contact
  1875.  
  1876.     uunet            Elm is /networking/mail/elm
  1877.  
  1878.     dsinc            Syd Weinstein
  1879.                 syd@Myxa.com, dsinc!syd
  1880.                 note: anon uucp info changed 12/16/91
  1881.                 For further info, send an e-mail
  1882.                 message to archive-server@Myxa.com stating:
  1883.                 send anon how-to dir
  1884.  
  1885.     stanton            Steven P. Donegan
  1886.                 donegan@stanton.cts.com, stanton!donegan 
  1887.                 714-894-2246 uucp - nuucp no word
  1888.                 Elm is /u/public/elm2.3.tar.Z
  1889.  
  1890.  
  1891.                 =+=+=+=+=+=+
  1892.  
  1893. Copyright Notice
  1894.  
  1895.     This FAQ is Copyright (C) Piero Serini.     All Rights are reserved.
  1896.     Permission  to use,  copy and distribute this FAQ, or parts thereof,
  1897.     by any means and for any purpose  EXCEPT  PROFIT PURPOSES  is hereby
  1898.     granted,  provided that both  the above  Copyright notice  and  this
  1899.     permission notice appear in all copies of the FAQ itself.
  1900.     Reproducing  this FAQ or parts thereof  by any means,  included, but
  1901.     not limited to,  printing,  copying existing prints,  publishing  by
  1902.     electronic  or other  means,  implies  full  agreement  to the above
  1903.     non-profit-use clause, unless upon explicit prior written permission
  1904.     of the author.
  1905.         Distribution of this file via USENET news is permitted.
  1906.  
  1907. Warranty Disclaimer
  1908.  
  1909.     THIS  FAQ  IS PROVIDED BY THE  AUTHOR ``AS IS'',  AND ANY EXPRESS OR
  1910.     IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,  THE IMPLIED WAR-
  1911.     RANTIES OF MERCHANTABILITY AND FITNESS  FOR A PARTICULAR PURPOSE ARE
  1912.     DISCLAIMED.
  1913.     IN  NO  EVENT SHALL THE  AUTHOR OR CONTRIBUTORS  BE  LIABLE  FOR ANY
  1914.     DIRECT,  INDIRECT,  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  1915.     DAMAGES  (INCLUDING, BUT  NOT LIMITED  TO, PROCUREMENT OF SUBSTITUTE
  1916.     GOODS  OR  SERVICES;  LOSS  OF USE,  DATA,  OR PROFITS;  OR BUSINESS
  1917.     INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
  1918.     IN CONTRACT,  STRICT LIABILITY,  OR TORT  (INCLUDING  NEGLIGENCE  OR
  1919.     OTHERWISE)  ARISING  IN  ANY  WAY OUT OF THE USE OF THE INFORMATIONS 
  1920.     HEREIN CONTAINED, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  1921.  
  1922. Publishing Notes
  1923.  
  1924.     If  you  want to publish  this FAQ  by any means,  electronically or
  1925.     otherwise, you can do it, provided the following conditions are met:
  1926.     1) The  above  Copyright Notice  and  Warranty Disclaimer  appear in
  1927.        their entirety in all copies you publish;
  1928.     2) You notify me by e-mail that you will publish this FAQ;
  1929.     3) You use the latest version of the FAQ you can get;
  1930.     4) You let people know where to find updated versions of the FAQ;
  1931.     5) Any modifications (other than typesetting changes) you make to it
  1932.        are clearly designated as your modifications;
  1933.  
  1934.     You  shall  also  send me a copy of the  published  material, in its
  1935.     entirety, free of charge.  Should this not be possible, due to legal
  1936.     or other restrictions,  please send me the part containing this FAQ,
  1937.     with  full references  to the published material  (i.e. ISBN or any-
  1938.     thing else to identify it), free of charge.
  1939.  
  1940. ----------------------
  1941. *** END of Elm FAQ *** This file has not been truncated
  1942.  
  1943. -- 
  1944. Piero Serini                                 Computer Science Dept. 
  1945. <serini@ghost.dsi.unimi.it>          Univ. Statale - Milano - ITALY
  1946.  
  1947.